<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:id="@+id/rootItem"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:paddingTop="9dp"
    android:paddingBottom="9dp"
    xmlns:tools="http://schemas.android.com/tools">

    <com.google.android.material.card.MaterialCardView
        android:id="@+id/card"
        android:layout_width="@dimen/big_size"
        android:layout_height="@dimen/big_size"
        android:layout_marginEnd="@dimen/dimen_12dp"
        app:cardCornerRadius="@dimen/dimen_12dp"
        app:cardElevation="0dp"
        app:layout_constraintDimensionRatio="1:1"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent">

        <com.google.android.material.imageview.ShapeableImageView
            android:id="@+id/iv_company"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            app:strokeWidth="1dp"
            android:padding="1dp"
            app:strokeColor="@color/black"
            android:scaleType="centerInside"
            android:src="@drawable/placeholder_company_icon"
            app:shapeAppearanceOverlay="@style/rounded_12"
            android:background="@color/white"/>
    </com.google.android.material.card.MaterialCardView>

    <TextView
        android:id="@+id/tv_vacancy_name"
        style="@style/TitleTextStyle"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_marginStart="@dimen/dimen_12dp"
        android:ellipsize="end"
        android:maxLines="3"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toEndOf="@id/card"
        app:layout_constraintTop_toTopOf="parent"
        android:textColor="@color/BlackDay_WhiteNight"
        tools:text="Разработчик на С++ в команду внутренних сервисов, Москва" />

    <TextView
        android:id="@+id/department"
        style="@style/StandartTextStyle"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_marginStart="@dimen/dimen_12dp"
        android:ellipsize="end"
        android:maxLines="1"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toEndOf="@id/card"
        app:layout_constraintTop_toBottomOf="@id/tv_vacancy_name"
        android:textColor="@color/BlackDay_WhiteNight"
        tools:text="Авто.ру" />

    <TextView
        android:id="@+id/salary"
        style="@style/StandartTextStyle"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_marginStart="@dimen/dimen_12dp"
        android:ellipsize="end"
        android:maxLines="1"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toEndOf="@id/card"
        app:layout_constraintTop_toBottomOf="@id/department"
        android:textColor="@color/BlackDay_WhiteNight"
        tools:text="от 40 000 до 80 000 ₽" />

</androidx.constraintlayout.widget.ConstraintLayout>
